/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_listen_recommend.entity;

import com.jeeplus.modules.xs_book.entity.XsBook;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 听书推荐信息Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsListenRecommend extends DataEntity<XsListenRecommend> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="类型(1.精品2.主编力荐3.必听榜)", dictType="tt", align=2, sort=1)
	private String type;		// 类型(1.精品2.主编力荐3.必听榜)
	@ExcelField(title="书籍名称", fieldType=XsBook.class, value="book.name", align=2, sort=2)
	private XsBook book;		// 书籍名称
	
	public XsListenRecommend() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsListenRecommend(String id){
		super(id);
	}
}